package com.junyu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.junyu.pojo.entity.LoginLog;
import com.junyu.pojo.vo.LoginStatistics;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 *日志Mapper
 */
@Mapper
public interface LogMapper extends BaseMapper<LoginLog> {
    /**
     * 近七日登录人次
     * @return  List<LoginStatistics> 统计登录人次集合
     */
    List<LoginStatistics> loginCount(String username);
}
